﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace MillerApp.CommonLib.Utility
{
    public class FileHelper
    {
        public static byte[] FileToByte(string filePath)
        {
            FileStream fs = new FileStream(filePath, FileMode.Open);
            byte[] fileData = new byte[fs.Length];
            fs.Read(fileData, 0, fileData.Length);
            fs.Close();
            return fileData;
        }
    }
}
